import 'package:flutter/material.dart';
import 'package:flutter_widgets_pc/config/pc_scroll_config.dart';
import 'package:flutter_widgets_pc/widgets/textFiled/kq_textfiled.dart';
import 'package:flutter_widgets_pc/widgets/titleBar/kq_title_bar.dart';
import 'package:get/get.dart';

///
class EditorDemo extends StatefulWidget {
  const EditorDemo({Key? key}) : super(key: key);

  @override
  EditorDemoState createState() => EditorDemoState();
}

class EditorDemoState extends State<EditorDemo> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: KqHeadBar(
        headTitle: '输入框demo',
        back: () {
          Get.back();
        },
      ),
      body: PcScrollConfig(
        child: KqTextFiled(
          multiline: true,
          maxLines: null,
          placeHolder: '请输入...',
          defValue: '测试输入功能\n\n测试输入功能\n\n测试输入功能\n\n',
          contentPadding: EdgeInsets.zero,
        ),
      ),
    );
  }
}
